home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ Media Folders.xpl < prev    next >
Text File  |  2001-09-01  |  2KB  |  73 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="4"
  3. "COUNT"="5"
  4. "UIPATH"="System\File System\Folders\Data"
  5. "NAME"="Media Folders"
  6. "VERSION"="2.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="My Pictures"
  9. "TEXT 2"="Media Files Root"
  10. "TEXT 3"="My Media"
  11. "TEXT 4"="Graphics"
  12. "TEXT 5"="Web Graphics"
  13. "DESCRIPTION 1"=""My Pictures" is a generic path for pictures."
  14. "DESCRIPTION 2"=""Media Files Root" specifies the root folder for all types of media files."
  15. "DESCRIPTION 3"=""My Media" specifies where you normally save your media files."
  16. "DESCRIPTION 4"=""Graphics" specifies where your graphics are saved (*.BMP, *.PNG and so on)."
  17. "DESCRIPTION 5"=""Web Graphics" specifies where you save your work that is somehow related with the Internet."
  18. "AUTHOR"="Xteq Systems"
  19. "CONTACTURL"="http://www.xteq.com"
  20. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  21. "COMMENT 1"="Thanks to CptSiskoX for his help!"
  22.  
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26. ' if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\") then
  27.   s=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures")
  28.   SetUIElement 1,s
  29.  
  30.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@")
  31.   SetUIElement 2,s
  32.  
  33.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath")
  34.   SetUIElement 3,s
  35.  
  36.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath") 
  37.   SetUIElement 4,s
  38.  
  39.   s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath") 
  40.   SetUIElement 5,s
  41.  
  42. ' else
  43. '  Disable
  44. ' end if
  45. End Sub
  46.  
  47. Sub Plugin_CheckData(ElementIndex)
  48. End Sub
  49.  
  50. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  51.  s=GetUIElement(1)
  52.  Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures",s,1) 
  53.  
  54.  s=GetUIElement(2)
  55.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@",s,1)
  56.  
  57.  s=GetUIElement(3)
  58.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath",s,1)
  59.  
  60.  s=GetUIElement(4)
  61.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath",s,1) 
  62.  
  63.  s=GetUIElement(5)
  64.  Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath",s,1) 
  65. End Sub
  66.  
  67.  
  68. Sub Plugin_Terminate 
  69. End Sub
  70.  
  71.  
  72.  
  73.